<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>管理员列表</title>
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/common.js"></script>
    <link media="all" href="/admin/css/style.css" type=text/css rel="stylesheet">
</head>
<body>

<div class="container">
    <div class="hastabmenu">
        <ul class="tabmenu">
            <li id="adduserbtn" class="tabcurrent"><a href="#" >添加管理员</a></li>
        </ul>
        <div id="adduserdiv" class="tabcontentcur">
            <form action="/admin/userlist/insert" method="post">
            <table width="100%">
                <tbody>
                <tr>
                    <td>用户名:</td>
                    <td><input name="username" class="txt" type="text" ><span></span></td>
                    <td>密码:</td>
                    <td><input name="password" class="txt" type="password"></td>
                    <td><input value="提 交" class="btn" type="submit"></td>
                </tr>
                </tbody>
            </table>
            </form>
        </div>
    </div>

    <br>
    <h3>管理员列表</h3>
    <div class="mainbox">
        <form action="/admin/userlist/delete" method="post">
        <table class="datalist fixwidth">
            <tbody>
            <tr>
                <th>
                    <input name="chkall" id="chkall" class="checkbox" type="checkbox"><label for="chkall">删除</label>
                </th>
                <th>学生姓名</th>
                <th>性别</th>
                <th>qq</th>
                <th>电话</th>
                <th>编辑</th>
            </tr>
            <?php foreach ($data as $row) {;?>
            <tr>
                <td class="option">
                    <input name="adminId" value="<?=$row['id'];?>" class="checkbox" type="checkbox">
                </td>
                <td><strong><?=$row['adminName'];?></strong></td>
                <td><?=date('Y-m-d', $row['addTime']);?></td>
                <td><?=$row['adminIp'];?></td>
                <td><?php if ($row['adminType']) {
    echo '启用';
} else {
    echo '禁用';
}
    ;?></td>
                <td><a href="/admin/userlist/editlist?id=<?=$row['id'];?>">编辑</a></td>
            </tr>
<?php }
;?>

            <tr class="nobg">
                <td><input value="提 交" class="btn" type="submit"></td>
                <td class="tdpage" colspan="6">
                    <div class="pages">
                        <em>100</em>
                        <strong>1</strong>
                        <a href="">2</a>
                        <a href="">3</a>
                        <a href="">4</a>
                        <a href="" class="next">&rsaquo;&rsaquo;</a>
                        <a href="" class="last">... </a>
                        <kbd><input type="text" name="custompage" size="3" onkeydown="if(event.keyCode==13) {window.location='?page='+this.value; return false;}" /></kbd>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
            </form>
    </div>
</div>
</body>
</html>
